//
//  SLHomeMenuCell.m
//  SlockApp
//
//  Created by 凯朱 on 2024/7/12.
//

#import "SLHomeMenuCell.h"

@implementation SLHomeMenuModel
@end

@implementation SLHomeMenuCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    _icon.layer.cornerRadius = 9;
    _icon.layer.masksToBounds = YES;
    _icon.layer.borderColor = KColor_O.CGColor;
    _icon.layer.borderWidth = 1;
    _titleLbl.font = [UIFont fontWithName:@"SFUIDisplay-Medium" size:16];
}

-(void)setModel:(SLHomeMenuModel *)model{
    _model = model;
    _titleLbl.text = model.title;
    if (model.iconName.length > 0) {
        _icon.hidden = NO;
        _icon.text = model.iconName;
    }else{
        _icon.hidden = YES;
    }
}


@end
